<?php
  $content_xml .= '<office:body>
        <office:text>
            <text:sequence-decls>
                <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
                <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
                <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
                <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
            </text:sequence-decls>
            <text:p text:style-name="P8">Trica Soft SRL
            </text:p>
            <text:p text:style-name="P8"/>
            <table:table table:name="Table1" table:style-name="Table1">
                <table:table-column table:style-name="Table1.A"/>
                <table:table-column table:style-name="Table1.B"/>
                <table:table-column table:style-name="Table1.C"/>
                <table:table-column table:style-name="Table1.D"/>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A1" office:value-type="string">
                        <text:p text:style-name="P6"><text:bookmark-start text:name="DDE_LINK"/>' . LANG_Furnizor . '
                            <text:bookmark-end text:name="DDE_LINK"/>
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A1" office:value-type="string">
                        <text:p text:style-name="P6">Trica Soft SRL
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A1" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_Cumparator . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D1" office:value-type="string">
                        <text:p text:style-name="P6">' . htmlspecialchars($client->nume) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_CF . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">19040170</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_CF . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6">' . htmlspecialchars($client->cf) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P7">' . LANG_RC . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">J35/2946/2006</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P7">' . LANG_RC . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6">' . htmlspecialchars($client->rc) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_Sediu . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">Str. Gh. Lazar, Nr. 7-9,</text:p>
                        <text:p text:style-name="P6">Sannicolau Mare, Timis,</text:p>
                        <text:p text:style-name="P6">305600,
                            <text:span text:style-name="T2">Romania</text:span>
                        </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_Sediu . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6">' . getAdresaAsString($client->adresa) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_CONT . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P14">RO57BRDE360SV66878163600 RON</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_CONT . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6">' . htmlspecialchars($contClient) . ' ' . $currencies[$monedaClient] . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_BANCA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P14">BRD Timisoara</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_BANCA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6">' . htmlspecialchars($bancaClient) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_TELEFON . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P17">0040770909446</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6"/>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6"/>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6">' . LANG_Cota_TVA . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P14">' . LANG_Scutit_fara_drept_deducere . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.A2" office:value-type="string">
                        <text:p text:style-name="P6"/>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table1.D2" office:value-type="string">
                        <text:p text:style-name="P6"/>
                    </table:table-cell>
                </table:table-row>
            </table:table>
            <text:p text:style-name="P9"/>
            <text:p text:style-name="P8">' . LANG_Factura . '</text:p>
            <text:p text:style-name="P11">' . LANG_Seria . ' : ' . htmlspecialchars($factura->nr_factura) . '</text:p>
            <text:p text:style-name="P12">' . LANG_DATA . ' : ' . htmlspecialchars(getDateForUser($factura->data)) . '</text:p>
            <text:p text:style-name="P10"/>
            <table:table table:name="Table2" table:style-name="Table2">
                <table:table-column table:style-name="Table2.A"/>
                <table:table-column table:style-name="Table2.B"/>
                <table:table-column table:style-name="Table2.C"/>
                <table:table-column table:style-name="Table2.D"/>
                <table:table-column table:style-name="Table2.E"/>
                <table:table-column table:style-name="Table2.F"/>
                <table:table-column table:style-name="Table2.G"/>
                <table:table-column table:style-name="Table2.H"/>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_NR_CRT . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1" table:number-columns-spanned="2"
                                      office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Denumirea_serviciilor . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Unitatea_de_masura . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Cantitatea . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Pret_Unitar . '</text:p>
                        <text:p text:style-name="P1">' . LANG_fara_TVA . '</text:p>
                        <text:p text:style-name="P1">' . $currencies[$moneda] . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Valoarea . '</text:p>
                        <text:p text:style-name="P1">' . $currencies[$moneda] . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H1" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Valoare_TVA . '</text:p>
                        <text:p text:style-name="P1">' . $currencies[$moneda] . '</text:p>
                        <text:p text:style-name="P1"/>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="float" office:value="0">
                        <text:p text:style-name="P1">0</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2" table:number-columns-spanned="2"
                                      office:value-type="float" office:value="1">
                        <text:p text:style-name="P1">1</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="float" office:value="2">
                        <text:p text:style-name="P1">2</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="float" office:value="3">
                        <text:p text:style-name="P1">3</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="float" office:value="4">
                        <text:p text:style-name="P1">4</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P1">5 (3 x 4)</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H2" office:value-type="float" office:value="6">
                        <text:p text:style-name="P1">6</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.A2" office:value-type="float" office:value="1">
                        <text:p text:style-name="P1">1</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" table:number-columns-spanned="2"
                                      office:value-type="string">
                        <text:p text:style-name="P1">' . htmlspecialchars($text_factura) . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P1">' . LANG_Bucata . ' </text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P3">1</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P3">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P3">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3" office:value-type="string">
                        <text:p text:style-name="P3">' . prepareFloatForUser(0) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:table-cell table:style-name="Table2.H3" table:number-columns-spanned="8"
                                      office:value-type="string">
                        <text:p text:style-name="P2">' . LANG_Termenul_de_plata_este . ' 30 ' . LANG_zile . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                </table:table-row>
                <table:table-row table:style-name="Table2.5">
                    <table:table-cell table:style-name="Table2.G2" table:number-rows-spanned="2"
                                      table:number-columns-spanned="2" office:value-type="string">
                        <text:p text:style-name="P2">' . LANG_Semnatura_si_stampila_furnizorului . '</text:p>
                        <text:p text:style-name="P2">
                            <draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="paragraph"
                                        svg:width="1.5098in" svg:height="1.5063in" draw:z-index="0">
                                <draw:image xlink:href="Pictures/10000000000001B9000001B853EA7320.jpg"
                                            xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
                            </draw:frame>
                            ' . LANG_NUME . ': Trica Laurentiu
                        </text:p>
                        <text:p text:style-name="P2">' . LANG_Serie_CI . ': 
                            <text:span text:style-name="T2">TM 217572</text:span>
                        </text:p>
                        <text:p text:style-name="P2">' . LANG_CNP . ': 1830902352296</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.G2" table:number-rows-spanned="2"
                                      table:number-columns-spanned="3" office:value-type="string">
                        <text:p text:style-name="P2">' . LANG_Date_privind_expeditia . '</text:p>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P2">' . LANG_Nume_delegat . '</text:p>
                        <text:p text:style-name="P2">' . htmlspecialchars($nume_user) . '</text:p>
                        <text:p text:style-name="P2">' . LANG_Serie_CI . '</text:p>
                        <text:p text:style-name="P2">' . htmlspecialchars($client->client_serie_ci) . '</text:p>
                        <text:p text:style-name="P2">' . LANG_CNP . '</text:p>
                        <text:p text:style-name="P2">' . htmlspecialchars($client->client_cnp) . '</text:p>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P2">' . LANG_Mijloc_transport . '</text:p>
                        <text:p text:style-name="P16">' . LANG_EMAIL . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P5">' . LANG_TOTAL . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P3">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3" office:value-type="string">
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P3">' . prepareFloatForUser(0) . '</text:p>
                    </table:table-cell>
                </table:table-row>
                <table:table-row>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:covered-table-cell/>
                    <table:table-cell table:style-name="Table2.G2" office:value-type="string">
                        <text:p text:style-name="P2">' . LANG_Semnatura_primire . '</text:p>
                    </table:table-cell>
                    <table:table-cell table:style-name="Table2.H3" table:number-columns-spanned="2"
                                      office:value-type="string">
                        <text:p text:style-name="P4">' . LANG_Total_de_plata . '</text:p>
                        <text:p text:style-name="P1">(col. 5 + col. 6)</text:p>
                        <text:p text:style-name="P2"/>
                        <text:p text:style-name="P3">' . prepareFloatForUser($suma_finala) . '</text:p>
                    </table:table-cell>
                    <table:covered-table-cell/>
                </table:table-row>
            </table:table>
            <text:p text:style-name="P10"/>
        </office:text>
    </office:body>
</office:document-content>';
?>
